package org.teremail.mailbox;

import org.teremail.message.Message;
import org.teremail.message.MessageHeaders;

public class FolderEntryProxy implements FolderEntry {
    
    private final EntryDO entry;
    private final Message message;

    public FolderEntryProxy(EntryDO entry, Message message) {
        this.entry = entry;
        this.message = message;
    }

    public Message getMessage() {
        return message;
    }

    public MessageHeaders getMessageHeaders() {
        return message.getHeader();
    }

    public int getUid() {
        return entry.getUid();
    }

}
